package com.tl.satoken.domain.entity;

import com.tl.satoken.enums.MessageType;
import lombok.Data;
import java.io.Serializable;

@Data
public class GameMessage implements Serializable {
    private static final long serialVersionUID = 1L;
    private MessageType type;
    private String from;
    private String roomId;
    private Object data;

    public GameMessage() {
    }

    public GameMessage(MessageType type, String from, String roomId, Object data) {
        this.type = type;
        this.from = from;
        this.roomId = roomId;
        this.data = data;
    }
}

